package com.xbongbong.pro.statistic.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author zcp
 * @version v1.0
 * @since v1.0
 */
@Getter
@Setter
@ToString
public class DataSetPermissionGetDTO extends BaseDTO {
    private static final long serialVersionUID = -7175396299237460949L;
    /**
     * 数据集id
     */
    @NotNull(message = "{dto.msg.common.id.NotNull}")
    private Long id;
    /**
     * editableRule 代表编辑者权限，visibleScopeRule 代表查看者权限
     * @see com.xbongbong.paas.enums.bi.DataSetPermissionEnum
     */
    @NotBlank(message = "{dto.msg.dataSetPermissionGet.permissionType.NotBlank}")
    private String permissionType;
}
